﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Pro.Repository.Entites
{
    /// <summary>
    /// 供应商
    /// </summary>
    [Table("pro_Supplier"), Comment("供应商")]
    public class Supplier : EfEntity
    {
        /// <summary>
        /// 供应商名称
        /// </summary>
        [Comment("供应商名称"),MaxLength(200)]
        public string Name { get; set; }

        /// <summary>
        /// 负责人名称
        /// </summary>
        [Comment("负责人名称"), MaxLength(200)]
        public string Leader { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [Comment("联系电话"), MaxLength(11)]
        public string Tel { get; set; }

        /// <summary>
        /// 银行卡账号
        /// </summary>
        [Comment("银行卡账号"), MaxLength(50)]
        public string? BankAccount { get; set; }

        /// <summary>
        /// 银行卡账号
        /// </summary>
        [Comment("持卡人姓名"), MaxLength(50)]
        public string? Payee { get; set; }

        /// <summary>
        /// 开户网点
        /// </summary>
        [Comment("开户网点"), MaxLength(500)]
        public string? OpeningBank { get;set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 状态 -1:删除 0:正常
        /// </summary>
        [Comment("状态 -1:删除 0:正常")]
        public int State { get; set; }
    }
}
